package com.qtu.product_service.entity;

import org.springframework.data.annotation.Id;
import java.io.Serializable;
import java.math.BigDecimal;
/**
 * 商品信息展示类
 */
public class ProductMapper implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private Integer id;

    private String goodsName;

    private String goodsDetails;

    private String sname;

    private BigDecimal oldPrice;

    private BigDecimal price;

    private Integer stock;

    private Integer allSaled;

    private String currentMonth;

    private String goodsImgUrl;

    private String qualityPeriod;

    private int goodsNum;

    public int getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(int goodsNum) {
        this.goodsNum = goodsNum;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsDetails() {
        return goodsDetails;
    }

    public void setGoodsDetails(String goodsDetails) {
        this.goodsDetails = goodsDetails;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public BigDecimal getOldPrice() {
        return oldPrice;
    }

    public void setOldPrice(BigDecimal oldPrice) {
        this.oldPrice = oldPrice;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getAllSaled() {
        return allSaled;
    }

    public void setAllSaled(Integer allSaled) {
        this.allSaled = allSaled;
    }

    public String getCurrentMonth() {
        return currentMonth;
    }

    public void setCurrentMonth(String currentMonth) {
        this.currentMonth = currentMonth;
    }

    public String getGoodsImgUrl() {
        return goodsImgUrl;
    }

    public void setGoodsImgUrl(String goodsImgUrl) {
        this.goodsImgUrl = goodsImgUrl;
    }

    public String getQualityPeriod() {
        return qualityPeriod;
    }

    public void setQualityPeriod(String qualityPeriod) {
        this.qualityPeriod = qualityPeriod;
    }

    @Override
    public String toString() {
        return "ProductMapper{" +
                "id=" + id +
                ", goodsName='" + goodsName + '\'' +
                ", goodsDetails='" + goodsDetails + '\'' +
                ", sname='" + sname + '\'' +
                ", oldPrice=" + oldPrice +
                ", price=" + price +
                ", stock=" + stock +
                ", allSaled=" + allSaled +
                ", currentMonth='" + currentMonth + '\'' +
                ", goodsImgUrl='" + goodsImgUrl + '\'' +
                ", qualityPeriod='" + qualityPeriod + '\'' +
                '}';
    }
}
